home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue10.arc / TVQFATTR.C < prev    next >
C/C++ Source or Header  |  1988-08-13  |  1KB  |  32 lines

  1. /*=======================================================*/
  2. /*  TVQFATTR.C                                           */
  3. /*                                                       */
  4. /*  Last Edit: 5/5/88                                    */
  5. /*                                                       */
  6. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  7. /*  May be freely copied for noncommercial use, so long  */
  8. /*  as this copyright notice remains intact, and any     */
  9. /*  changes are marked in the comment blocks preceding   */
  10. /*  functions.                                           */
  11. /*=======================================================*/
  12.  
  13. #include "tvapi.h"
  14. #include "tvstream.h"
  15.  
  16. /*=======================================================*/
  17. /* TVqry_frattr   get attribute of window's frame        */
  18. /*   Ralf Brown 4/15/88                                  */
  19. /*=======================================================*/
  20.  
  21. int pascal TVqry_frattr(OBJECT win)
  22. {
  23.    static BYTE query_stream[] = { S_QUERY(4), 0xED, 0x90, 0x01, 0 } ;
  24.  
  25. /*   query_stream[5] = 0x90 ; */ /* don't know what bit flags stand for yet */
  26. /*   query_stream[6] = 0x01 ; */ /* get first attribute.  assumes all are the same */
  27.    TVwin_stream(win,query_stream) ;
  28.    return query_stream[7] ;
  29. }
  30.  
  31. /* End of TVQFATTR.C */
  32.